#ifndef UNICODE_H
#define UNICODE_H

#include <stdio.h>
#include <stdlib.h>

size_t UnicodeLens(char *from);
size_t UnicodeToUtf8(char *to, unsigned short *from, size_t need, size_t *buffer_lens);
size_t Utf8ToUnicode(unsigned short *to, char *from, size_t lens);
int unicode_to_gb2312(char *outbuf, size_t outlen, char *inbuf, size_t inlen);
int gb2312_to_unicode(char *outbuf, size_t outlen, char *inbuf, size_t inlen);

#endif

